<script type="text/javascript">
var successFun=function(res){
if(res.code==500){
	$('#oldpassword_info').html("旧的密码错误");
}else{
	alert('密码更新成功,请重新登录！');
	document.location	= res.data.forward;
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div id="content">
<form id="form" action="{url('Admin','SaveEdit')}" method="post">
<h3 class="title">修改密码</h3>
<table class="admin-table">
	<tr>
	<td>旧的密码：</td>
	<td><input name="oldpassword" id="oldpassword" type="password" tabindex="1" /><span etype='error_info' class="error_info" id="oldpassword_info"></span></td>
	</tr>
	<tr>
	<td>新的密码：</td>
	<td><input name="password" id="password" type="password" tabindex="2" /><span etype='error_info' class="error_info" id="password_info"></span></td>
	</tr>
	<tr>
	<td>确认密码：</td>
	<td><input name="confirm" id="confirm" type="password" tabindex="3" /><span etype='error_info' class="error_info"id="confirm_info"></span></td>
	</tr>
	<tr><td></td><td><input id="btnAjaxSubmit" type="submit" value="保存" /> </td></tr>
</table>
</form>
</div>